package cn.edu.xmist.adapter.objectpattern;

import cn.edu.xmist.adapter.classpattern.ModelAdatee;

public class ModelAdapter implements ModeTarget {

    private ModelAdatee modelAdatee;

    public ModelAdapter(ModelAdatee modelAdatee) {
        this.modelAdatee = modelAdatee;
    }

    @Override
    public int ouputMethod() {
        int i = modelAdatee.doSomething();
        /**
         * 复杂的电压转换
         */
        int output = i -215;

        return output;
    }
}
